package com.example.demo.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DeomConfig {

    @Bean
    @ConfigurationProperties(prefix = "demo")
    Demo demo(){
        return  new Demo();
    }
}
